package cn.vendgateway.com.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "jwt") // 对应 Nacos 中的 jwt 配置
public class JwtProperties {

    /**
     * 过期时间（分钟）
     */
    private long expireMinutes;

    /**
     * 密钥
     */
    private String secret;

    public long getExpireMinutes() {
        return expireMinutes;
    }

    public void setExpireMinutes(long expireMinutes) {
        this.expireMinutes = expireMinutes;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }
}
